<form id="pagerForm" method="post" action="{:url('Template/index')}">
    <input type="hidden" name="license_type" value="{$license_type|default=''}">
    <input type="hidden" name="inspection_type_name" value="{$inspection_type_name|default=''}">
    <input type="hidden" name="inspection_name" value="{$inspection_name|default=''}">
    <input type="hidden" name="pageNum" value="{$page|default=''}"/>
    <input type="hidden" name="numPerPage" value="{$page_size|default=''}"/>
</form>

<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="{:url('Template/index')}" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>车辆类型:</td>
                    <td>
                        <select class="combox" name="license_type">
                            <option value="" {if condition="$license_type eq ''"}selected="selected"{/if}>全部</option>
                            <option value="1" {if condition="$license_type eq 1"}selected="selected"{/if}>小型车</option>
                            <option value="2" {if condition="$license_type eq 2"}selected="selected"{/if}>中型车</option>
                            <option value="3" {if condition="$license_type eq 3"}selected="selected"{/if}>大型车</option>
                            <option value="4" {if condition="$license_type eq 4"}selected="selected"{/if}>挂车</option>
                        </select>
                    </td>
                    <td>检验项目类型名称:</td>
                    <td><input name="inspection_type_name" size="25" type="text" value="{$inspection_type_name}"/></td>
                    <td>检验项目名称:</td>
                    <td><input name="inspection_name" size="25" type="text" value="{$inspection_name}"/></td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">检索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a rel="templateManageAdd" class="add" href="{:url('Template/add')}" target="navTab"  title="添加"><span>添加</span></a></li>
            <li><a rel="templateManageModify" class="edit" href="{:url('Template/modify')}?id={id}" target="navTab"  title="修改"><span>修改</span></a></li>
            <li><a class="delete" href="{:url('Template/doDelete')}?id={id}" target="ajaxTodo" title="确定要删除吗？"><span>删除</span></a>
            </li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="140">
        <thead>
            <tr>
                <th width="5%">车辆类型</th>
                <th width="5%">检验项目类型序号</th>
                <th width="10%">检验项目类型名称</th>
                <th width="10%">检验项目名称</th>
                <th width="5%">检验项目排序</th>
                <th width="5%">是否检查</th>
                <th width="5%">创建时间</th>
                <th width="8%">修改时间</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="val" key="i"}
            <tr target="id" rel="{$val.id}">
                <td width="5%" class="o-num"> {$val.license_type|get_license_type}</td>
                <td width="5%">{$val.inspection_type_id}</td>
                <td width="10%">{$val.inspection_type_name}</td>
                <td width="10%">{$val.inspection_name}</td>
                <td width="5%">{$val.inspection_sort}</td>
                <td width="5%">
                    {if condition="$val.inspection_status eq 0"}否
                    {elseif condition="$val.inspection_status eq 1"}是
                    {/if}
                </td>
                <td width="5%">{$val.create_time|date='Y-m-d H:i:s',###}</td>
                <td width="5%">{$val.update_time|date='Y-m-d H:i:s',###}</td>
            </tr>
            {/volist}
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共{$count}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="{$count}" numPerPage="{$numPerPage}" pageNumShown="10"
        currentPage="{$pageNum}"></div>
    </div>
</div>